<?php
defined('BASEPATH') or exit('No direct script access allowed');


class OrganizeController extends Admin_Controller {

    public function __construct() {
        try {
            parent::__construct();
            $this->load->service("SService/OrganizeService");
        } catch (\TPException $e) {
            exit($e->getRetJson());
        }
    }


    /**
     * 方法名 organizeList
     *
     * @Name 获取方法列和角色方法列
     * @Desc 组织列表
     * @OpenFlag 是否开放,1开放0权限控制
     * @Author      zn
     * @Date 2021-11-15 09:30:37 星期一
     * @return      [type]                   [description]
     */
    public function organizeList() {
        $res = $this->OrganizeService->organizeList($_POST);
        exit(retSucc($res));
    }


    /**
     * 方法名 organizeDelete
     *
     * @Name 获取方法列和角色方法列
     * @Desc 组织删除
     * @OpenFlag 是否开放,1开放0权限控制
     * @Author      zn
     * @Date 2021-11-15 09:30:37 星期一
     * @return      [type]                   [description]
     */
    public function organizeDelete() {
        $res = $this->OrganizeService->organizeDelete($_POST);
        exit(retSucc($res));
    }


    /**
     * 方法名 organizeEdit
     *
     * @Name 获取方法列和角色方法列
     * @Desc 组织修改
     * @OpenFlag 是否开放,1开放0权限控制
     * @Author      zn
     * @Date 2021-11-15 09:30:37 星期一
     * @return      [type]                   [description]
     */
    public function organizeEdit() {
        $res = $this->OrganizeService->organizeEdit($_POST);
        exit(retSucc($res));
    }


    /**
     * 方法名 organizeImport
     *
     * @Name 获取方法列和角色方法列
     * @Desc 组织导入
     * @OpenFlag 是否开放,1开放0权限控制
     * @Author      zn
     * @Date 2021-11-15 09:30:37 星期一
     * @return      [type]                   [description]
     */
    public function organizeImport() {
        $res = $this->OrganizeService->organizeImport();
        exit(retSucc($res));
    }


    /**
     * 方法名 organizeStatus
     *
     * @Name 获取方法列和角色方法列
     * @Desc 组织状态修改
     * @OpenFlag 是否开放,1开放0权限控制
     * @Author      zn
     * @Date 2021-11-15 09:30:37 星期一
     * @return      [type]                   [description]
     */
    public function organizeStatus() {
        $res = $this->OrganizeService->organizeStatus($_POST);
        exit(retSucc($res));
    }


    public function dptmtList() {
        $res = $this->OrganizeService->dptmtList();
        exit(retSucc($res));
    }

    public function orgList() {
        $res = $this->OrganizeService->orgList($_POST);
        exit(retSucc($res));
    }

    

    
}
